class Placeable
{
  static final float DEAD_TIMER_SPEED = 1;
  float deadTimer = 100;
  boolean barHz;
  float px;
  float py;
  float health = 150;
  int alpha = 255;
  
  Placeable(boolean new_barHz, float x, float y)
  {
    
    px = x;
    py = y;
    barHz = new_barHz;
  }
  
  float getX()
  {
    return px;
  }
  
  float getY()
  {
    return py;
  }
  
  boolean getBarHz()
  {
    return barHz;
  }
  
  float getHealth()
  {
    return health;
  }
  
  void looseHealth(float dmg)
  {
    health -= dmg;
  }
  float getDeadTimer()
  {
    return deadTimer;
  }
  
  int getAlpha()
  {
   return alpha; 
  }
  
  void Update()
  {
  
    if(health <= 0)
    {
      deadTimer -= DEAD_TIMER_SPEED;
      alpha -= 2;
    }
    
  }
  
}
